Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 7 DecisionTree example used normalized data #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

donalus
Copy link

@donalus donalus commented Feb 16, 2023

The DecisionTree example in 'Chapter 7.ipynb' was not running with scikit-learn 1.2.1 and with Scikit-learn 1.1.1 was throwing a warning. The message included: "The feature names should match those that were passed during fit." and was referencing the normalized data.

After some digging, it turns out that newApplicant was changed for KNN example and not reverted to the original data for the DecisionTree example. This code creates a newApplicant with non-normalized values and now runs without throwing errors. I tried to stay close to the style of the code in the KNN example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant